layerlist=["BUCP_1居住小区Merge","GP2_各类站点","GP3_企业","GP4_学校","GP5_体育","GP6_文化","GP7_休闲娱乐","GP8_养老","GP9_医疗"]
typenamelist=["1小区","2站点","3企业","4学校","5体育","6文化","7休闲","8养老","9医疗"]

# Replace a layer/table view name with a path to a dataset (which can be a layer file) or create the layer/table view within the script
# The following inputs are layers or table views: "accessibility\POI\BUCP_1居住小区Merge"
for i in range(len(layerlist))
arcpy.AddField_management(in_table="accessibility/POI/"+layerlist[i], field_name="TType", field_type="TEXT", field_precision="", field_scale="", field_length="", field_alias="", field_is_nullable="NULLABLE", field_is_required="NON_REQUIRED", field_domain="")


# Replace a layer/table view name with a path to a dataset (which can be a layer file) or create the layer/table view within the script
# The following inputs are layers or table views: "accessibility\POI\BUCP_1居住小区Merge"
for i in range(len(layerlist)):
    arcpy.CalculateField_management(in_table="accessibility/POI/"+layerlist[i], field="TType", expression='\"'+typenamelist[i]+'\"', 